From 523cd493eb31aaf084e04cdf75e4f971564cfdad Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 7 Mar 2003 19:15:29 +0000 Subject: [PATCH] Fix typo in restaurant. Fix mappings for icon #'s > 'z'. Thanx, Vito. --- gpsbabel/magproto.c | 2 +- gpsbabel/mapsend.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 006ec951e..e2fb9ff8b 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -136,7 +136,7 @@ static icon_mapping_t map330_icon_table[] = { { "z", "obstruction" }, { "aa", "park" }, { "ab", "resort" }, - { "ac", "restaraunt" }, + { "ac", "restaurant" }, { "ad", "rock" }, { "ae", "scuba" }, { "af", "RV service" }, diff --git a/gpsbabel/mapsend.c b/gpsbabel/mapsend.c index 655a4deef..78af2c006 100644 --- a/gpsbabel/mapsend.c +++ b/gpsbabel/mapsend.c @@ -233,7 +233,7 @@ mapsend_wpt_read(void) if (wpt_icon < 26) sprintf(tbuf, "%c", wpt_icon + 'a'); else - sprintf(tbuf, "a%c", wpt_icon - 27 + 'a'); + sprintf(tbuf, "a%c", wpt_icon - 26 + 'a'); wpt_tmp->icon_descr = mag_find_descr_from_token(tbuf); waypt_add(wpt_tmp); @@ -347,7 +347,7 @@ n = ++cnt; if (1 == strlen(iconp)) { n = iconp[0] - 'a'; } else { - n = iconp[1] - 'a' + 27; + n = iconp[1] - 'a' + 26; } } else { n = 0; -- 2.30.2